#include "CSerialPortSettings.h"

CSerialPortSettings::CSerialPortSettings()
{

}

CSerialPortSettings::CSerialPortSettings(const CSerialPortSettings& setting)
{
    baudRate=setting.baudRate;
    parity=setting.parity;
    dataBits=setting.dataBits;
    stopBits=setting.stopBits;
    flowControl=setting.flowControl;
    readBufferSize=setting.readBufferSize;
}

CSerialPortSettings & CSerialPortSettings::operator=(const CSerialPortSettings &setting)
{
    if(this!=&setting)
    {
        baudRate=setting.baudRate;
        parity=setting.parity;
        dataBits=setting.dataBits;
        stopBits=setting.stopBits;
        flowControl=setting.flowControl;
        readBufferSize=setting.readBufferSize;
    }
    return *this;
}
